package Server.Tasks;

import Server.PhoneServerThread;
import Server.PhoneServerThread.States;

public class CalleeRingingTask extends PhoneTask{
	
	private PhoneServerThread phone;
	
	public CalleeRingingTask (int priority, String d, PhoneServerThread phone)
	{
		super(priority, d);
		this.phone = phone;
	}
	
	public void ProcessTask() {
		phone.setPhoneState(States.RINGING);
	}
	
	public String GetOutput() {
		return ("CalleeRinging");
	}
}
